package ants_v2

type Worker struct {
	pool     *Pool
	taskChan chan func()
}

func (w Worker) run() {
	go func() {
		// loop the taskChan to do the task
		for task := range w.taskChan {
			task()
		}
	}()

}
